package
        com.zzc.fee.controller.apis;

import com.hos.entity.his.CareOrderItem;
import com.hos.entity.his.CheckResult;
import com.hos.entity.sys.CheckItem;
import com.hos.vo.CheckingResultImgVo;
import com.hos.vo.Result;
import com.zzc.fee.service.CareOrderItemService;
import com.zzc.fee.service.CheckItemService;
import com.zzc.fee.service.CheckResultService;
import com.zzc.fee.vo.CareOrderItemVo;
import com.zzc.fee.vo.CheckResultVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author：xIAO_ZHOU_TX
 * @date：Created in 2023/12/22 9:12
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/fee/api/statistics/check")
@Api(value = "药品销售统计相关接口",tags = "药品销售统计相关接口")
public class APICheckController {

    @Resource
    private CheckResultService checkResultService;

    @Resource
    private CheckItemService checkItemService;

    @PostMapping("/queryCheck")
    @ApiOperation("查询检查项目统计列表")
    public Result<List<CheckResult>> queryCheck(@RequestBody CheckResultVo checkResultVo){
        return new Result<>(200,"查询成功",checkResultService.queryCheck(checkResultVo));
    }
    @PostMapping("/selectAllCheckItem")
    @ApiOperation("查询所有检查项目")
    public Result<List<CheckItem>> selectAllCheckItem(){

        return new Result<>(200,"查询成功",checkItemService.selectAllCheckItem());
    }
    @PostMapping("/queryCheckStat")
    @ApiIgnore("查询检查项目数量统计列表")
    public Result<List<CheckResult>> queryCheckStat(@RequestBody CheckResultVo checkResultVo){
        return new Result<>(200,"查询成功",checkResultService.queryCheckStat(checkResultVo));
    }
}
